<?php

include 'islogin.php';

include '../config.php';



  if(isset($_POST['name']))

  {

  		$sql = "update en_basicinfo set name='".$_POST['name']."',advice='".$_POST['advice']."',par='".$_POST['par']."',suppor='".$_POST['suppor']."',sales='".$_POST['sales']."',sina_url='".$_POST['sina_url']."',qq_url='".$_POST['qq_url']."',rss_url='".$_POST['rss_url']."',remark = '".$_POST['remark']."',ebay_link='".$_POST['ebay_link']."'";

  		

  		mysql_query($sql);

  		echo "<script>alert('修改成功');</script>";

  }

?>

<link href="images/skin.css" rel="stylesheet" type="text/css" />

<link href="css/right.css" rel="stylesheet" type="text/css"/>

<script type="text/javascript">
	function save()

	{

		 if(confirm("是否提交修改内容?"))

		 {

			 document.form1.submit();

		 }

	}
</script>







 <?php 

      

         $sql="select name,advice,par,suppor,sales,remark,sina_url,qq_url,rss_url from en_basicinfo";

         $result = mysql_query($sql);

          $row = mysql_fetch_array($result);

 ?>

<div style="border:0px solid red;"> 



    	<div id="top"><div>基本设置</div></div>

    	

	    <div id="middle">

	    	<!-- 基本信息 -->

	      <div class="layout">

		       <div class="title">基本信息</div>

		       <div class="content">

			         <form name="form1" method="post" action="basicset.php">

			           <table>

				             <tr>

				   		   		<td class="title_td">公司名称：</td>

				                <td><input name="name" type="text" id="title"  value="<?php echo $row['name']?>" /></td>

				                <td class="remark_td">显示在网站底部</td>

			   				</tr>

			   				<tr>

				   		   		<td class="title_td">投诉邮箱：</td>

				                <td ><input name="advice" type="text" id="title"  value="<?php echo $row['advice']?>" /></td>

				                <td class="remark_td">投诉建议的接收邮箱</td>

			   				</tr>

			   		

			   				<tr>

				   		   		<td class="title_td"> 商务合作邮箱：</td>

				                <td><input name="par" type="text" id="title"  value="<?php echo $row['par']?>" /></td>

				                <td class="remark_td">商务合作邮箱</td>

			   				</tr>

			   		

			   				<tr>

				   		   		<td class="title_td">技术支持邮箱：</td>

				                <td><input name="suppor" type="text" id="title"  value="<?php echo $row['suppor']?>" /></td>

				                <td class="remark_td">技术支持邮箱</td>

			   				</tr>

			   				

			   				<tr>

				   		   		<td class="title_td">邮购产品邮箱：</td>

				                <td ><input name="sales" type="text" id="sales"  value="<?php echo $row['sales']?>" /></td>

				                <td class="remark_td">邮购产品邮箱</td>

			   				</tr>
			   				
			   				<tr>

				   		   		<td class="title_td">关注我们链接：</td>

				                <td ><input name="sina_url" type="text" id="sina_url"  value="<?php echo $row['sina_url']?>" /></td>

				                <td class="remark_td">新浪微博</td>

			   				</tr>
			   				
			   				<tr>

				   		   		<td class="title_td"></td>

				                <td ><input name="qq_url" type="text" id="qq_url"  value="<?php echo $row['qq_url']?>" /></td>

				                <td class="remark_td">腾讯微博</td>

			   				</tr>
			   				
			   				<tr>

				   		   		<td class="title_td"></td>

				                <td ><input name="rss_url" type="text" id="rss_url"  value="<?php echo $row['rss_url']?>" /></td>

				                <td class="remark_td">RSS订阅</td>

			   				</tr>

			   				<tr>

                                <td class="title_td">ebay官方店链接：</td>

                                <td ><input name="ebay_link" type="text" id="ebay_link"  value="<?php echo $row['ebay_link']?>" /></td>

                                <td class="remark_td"></td>

                            </tr>

			   				<tr>

				   		   		<td class="title_td">公司简介：</td>

				                <td colspan="2"><textarea rows="8" cols="40" name="remark" id="remark"><?php echo $row['remark']?></textarea></td>

				                <td class="remark_td">公司简介文字</td>

			   				</tr>

			   				<tr>

			   				 <td class="title_td"></td>

			   				 <td><input type="button" value="保存" onclick="save()" /></td>

			   				 <td class="remark_td"></td>

			   				</tr>

			           </table>

			           

			         </form>  

		       </div>

	       </div>

	       

	    </div>

	    

    	<div id="bottom"></div>	

    </div>

	





      